package routes

import (
	"github.com/gin-gonic/gin"
	"mon-go-web/internal/controllers"
	"mon-go-web/pkg/bind"
)

func SetupArticleRoutes(r *gin.Engine) {
	articleCtrl := controllers.NewArticleController()
	articleGroup := r.Group("/articles")
	{
		bind.Post(articleGroup, "/add", articleCtrl.Create)
		bind.Get(articleGroup, "/query", articleCtrl.GetByQuery)
	}
}
